package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;


@Data
public class Dc3Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    /** 主键ID */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;

    /** 驱动ID */
    @Excel(name = "驱动ID")
    private Long driverId;

    /** 分组ID */
    @Excel(name = "分组ID")
    private Long groupId;

    /** 设备拓展信息 */
    @Excel(name = "设备拓展信息")
    private String deviceExt;

    /** 使能标识 */
    @Excel(name = "使能标识")
    private Integer enableFlag;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 签名 */
    @Excel(name = "签名")
    private String signature;

    /** 版本 */
    @Excel(name = "版本")
    private Long version;

    /** 创建者ID */
    @Excel(name = "创建者ID")
    private Long creatorId;

    /** 创建者名称 */
    @Excel(name = "创建者名称")
    private String creatorName;

    /** 操作者ID */
    @Excel(name = "操作者ID")
    private Long operatorId;

    /** 操作者名称 */
    @Excel(name = "操作者名称")
    private String operatorName;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 逻辑删除标识, 0:未删除, 1:已删除 */
    @Excel(name = "逻辑删除标识, 0:未删除, 1:已删除")
    private Long deleted;
}
